package com.gf.pokemon.util.page;

import java.util.Iterator;
import java.util.List;

public class PagedList<T> implements Iterable<T> {

	private Page page;
	private List<T> list;

	public PagedList(Page page, List<T> list) {
		this.page = page;
		this.list = list;
	}

	public Page getPage() {
		return page;
	}

	public List<T> getList() {
		return list;
	}

	@Override
	public Iterator<T> iterator() {
		return list.iterator();
	}

}
